<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="css/authentication.css">
  <link rel="stylesheet" href="css/base.css">
  <title>登录/注册小A论坛</title>
</head>
<body>
  <div class="logo">
    <img src="img/Alogo.png" alt="logo">
  </div>
  <div class="main-content">
    <ul class="tab">
      <li>邮箱登录</li>
      <li>用户名登录</li>
      <li>注册账号</li>
      <div class="underline"></div>
    </ul>
    <div class="form">
      <div class="login email active">
        <form name="emailLoginForm" method="post">
          <input type="text" name="email" value="" placeholder="邮箱" />
          <input type="password" name="password" value="" placeholder="密码" />
          <div>
            <span><input type="checkbox" name="save" />七天免登录</span>
            <span class="forget" onclick="changeForgetPage('open')">忘记密码</span>
          </div>
          <button type="button" class="primary full" onclick="login('email')">登录</button>
        </form>
      </div>
      <div class="login username">
        <form name="usernameLoginForm" method="post">
          <input type="text" name="email" value="" placeholder="用户名" />
          <input type="password" name="password" value="" placeholder="密码" />
          <div>
            <span><input type="checkbox" name="save" />七天免登录</span>
            <span class="forget" onclick="changeForgetPage('open')">忘记密码</span>
          </div>
          <button type="button" class="primary full" onclick="login('username')">登录</button>
        </form>
      </div>
      <div class="register">
        <form name="registerForm" method="post">
          <input type="text" name="email" value="" placeholder="真实的邮箱"/>
          <input type="text" name="username" value="" placeholder="用户名"/>
          <input type="password" name="password" value="" placeholder="密码" />
          <input type="password" name="passwordConfirm" value="" placeholder="确认密码" />
          <button type="button" class="primary full" onclick="register()">注册</button>
        </form>
      </div>
    </div>
  </div>
  <div class="layer" style="display: none;">
    <div class="forget-page">
      <div class="title">
        <h2>忘记密码了</h2>
        <h2 onclick="changeForgetPage('close')" id="close">X</h2>
      </div>
      <form name="forgetPass" method="post">
        <div class="get-code">
          <input type="text" name="email" value="" placeholder="您的邮箱"/>
          <button type="button" onclick="getCode()" id="get-code" class="primary full">获取验证码</button>  
        </div>
        <input type="text" name="code" value="" placeholder="验证码"/>
        <input type="password" name="password" value="" placeholder="新的密码"/>
        <input type="password" name="passwordConfirm" value="" placeholder="再次输入新的密码"/>
        <button type="button" name="submit" onclick="resetPassword()" id="reset-password" class="primary full">修改密码</button>
      </form>
    </div>
  </div>
  <script src="js/operation.js"></script>
  <script src="js/authentication.js"></script>
</body>
</html>